<?php namespace Barryvdh\Debugbar;

use Laravel\Lumen\Application;

class LumenServiceProvider extends ServiceProvider
{
    
    protected $app;

    
    protected function getRouter()
    {
        return $this->app;
    }

    
    protected function getConfigPath()
    {
        return base_path('config/debugbar.php');
    }

    
    protected function registerMiddleware($middleware)
    {
        $this->app->middleware([$middleware]);
    }

    
    protected function checkAppDebug()
    {
        return env('APP_DEBUG');
    }

    
    public function provides()
    {
        return ['debugbar', 'command.debugbar.clear'];
    }
}
